<!doctype html>
<html ng-app='myApp'>
<head>
<#include "/h5/include.ftl"/>
<script src="/h5/js/biz/orderList.js"></script>
<title>我的消费</title>
</head>

<body style="background:#f2f2f2;" ng-controller='orderController'>
<div class="index-header"> 
  <!--iheader-->
  <div id="iheader">
    <a href="/m/home" class="iheader_back"></a>
    <h2 class="iheader_title">我的消费</h2>
    <h6 class="clear"></h6>
  </div>
</div>
<div class="h90"></div>
<div class="consume_t">
	<ul>
		<li><a href="#" ng-class="{'on':state==0}" ng-click='load(0)'>全部</a></li>
        <li><a href="#" ng-class="{'on':state==1}" ng-click='load(1)'>未付款</a></li>
        <li><a href="#" ng-class="{'on':state==4}" ng-click='load(4)'>已完成</a></li>
    </ul>
</div>
<div class="consume">
    <div class="consume_a" ng-repeat='o in list' ng-click='detail(o.id)'>
    	<div class="consume_a_t" ng-show='o.state==1'>
    	<span ng-show='o.state==1'>等待付款</span>
    	{{o.time}}
    	</div>
    	<div class="consume_a_t2" ng-show='o.state!=1'><i ng-show='o.payType==2'>线下支付</i><i class="order_pay" ng-show='o.payType==1'>在线支付</i>
    	<h2><span ng-show='o.state==4'>订单已完成</span>{{o.time}}</h2>
    	</div>
    	<div class="consume_a_img"><img src="/h5/images/img.jpg" ng-src='/download?id={{o.storeImg}}'/></div>
    	<div class="consume_a_con">
        	<h2 class="consume_a_name"><a class="" ng-bind='o.storeName'>长兴楼饭店（新区总店）</a></h2>
        	<ul>
            	<li ng-repeat='c in o.carts'><span ng-bind="'x'+c.num">x10</span>{{c.name}}</li>
            </ul>
            <div class="consume_a_total">
            	共{{o.total}}份，共计：<span>￥{{o.totalPrice}}</span>
            </div>
        </div>
        <div class="consume_unpaid" ng-show='o.state==1'>
        <a href="" class="go_pay" ng-click='toPay(o)'>去付款</a><a href="" ng-click='updateOrder(o,1)'>取消订单</a>
    	</div>
    	<div class="consume_pj" ng-show='o.state==4&&o.hasComment==0'>
            <a href="" ng-click='toComment(o)'>评价</a>
        </div>
         <div class="consume_pj2" ng-show='o.hasComment==1'>
            <a href="">已评价</a>
        </div>
    </div>
    <div class="h20"></div>
</div>



<div class="h40"></div> 
</body>
</html>
